import request from '@/utils/request'


// http://192.168.139.11:8090/purchase/ncc
// 获取NCC采购订单
export function getPurchaseNccInfo(query) {
  return request({
    url: '/purchase/ncc',
    method: 'get',
    params: query
  });
}

// 创建入库单
export function createPurchaseInboundOrder(data) {
  return request({
    url: '/purchase/purchase-inbound-order',
    method: 'post',
    data: JSON.stringify(data) // 将传入的数据转换为JSON字符串后作为请求体发送
  });
}


// 验证批次号是否唯一
export function getWMSCommonBatchNo(batchNo) {
  return request({
    url: `/wms/common/batchNo/${batchNo}`,
    method: 'get',
  });
}